package edu.suse.mapper;

import edu.suse.entity.SysRole;

import java.sql.Timestamp;
import java.util.List;

public interface SysRoleMapper{

    List<SysRole> findSysRoleAllStatus(Long status);

    SysRole findSysRoleByName(String name);

    SysRole findSysRoleByTitle(String title);

    Boolean addSysRole(String title, String name, String remark, Timestamp createDate, Timestamp updateDate);

    Boolean deleteSysRole(Long id);

    Boolean updateSysRole(Long id, String title, String name, String remark, Timestamp updateDate);

    Boolean updateSysRoleStatus(Long id, Long status);


}
